package com.manolo.component.desing;

import java.awt.Rectangle;

import com.manolo.component.desing.base.BaseVectorShape;
import com.manolo.framework.deck.*;
import com.manolo.framework.util.Util;

public class CardScr extends BaseVectorShape {

	private Card card;
	
	public Card getCard() {
		return card;
	}

	public void setCard(Card card) {
		this.card = card;
	}

	@Override
	public Rectangle getBounds() {
		return new Rectangle((int) getX() - 6, (int) getY() - 6, 12, 12);
	}

	public CardScr() {
		setShape(new Rectangle(0, 0, 120, 160));
		setAlive(true);

	}
	
	public CardScr(Card card){
		this();
		this.card = card;
	}
}
